<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>环境</title>

    <link href="../css/video-learning.css" rel="stylesheet">

    <script src="../plugins/vue.js"></script>
    <script src="../plugins/element-ui/lib/index.js"></script>
    <link rel="stylesheet" href="../plugins/element-ui/lib/theme-chalk/index.css">
    <script src="../plugins/axios-0.18.0.js"></script>
    <script src="../plugins/js.cookie.min.js"></script>
</head>
<body>
<div class="video_lesson" id="video-app">
    <div class="fill"></div>
    <div class="upper_navMenu" id="upBody">
        <el-menu
                :default-active="activeIndex2"
                class="el-menu-demo"
                mode="horizontal"
                @select="handleSelect"
                background-color="#4caf50"
                text-color="#fff"
                active-text-color=" #4ee54e">
            <div class="workbench">
            <el-submenu index="1" id="submenu">
                <template slot="title">我的主页</template>
                <el-menu-item index="2-1">1</el-menu-item>
                <el-menu-item index="2-2">2</el-menu-item>
                <el-menu-item index="2-3">3</el-menu-item>
                <el-menu-item index="2-4">4</el-menu-item>
            </el-submenu>
            </div>
        </el-menu>

        <div class="left_navMenu">
            <el-row class="tac">
                <el-col :span="12">
                    <el-menu
                            class="el-menu-vertical-demo"
                            @open="handleOpen"
                            @close="handleClose"
                            background-color="#009688"
                            text-color="#fff"
                            active-text-color=" #4ee54e">
                        <el-menu-item index="1">
                            <span slot="title">首页</span>
                        </el-menu-item>
                        <el-menu-item index="2">
                            <span slot="title">视频学习</span>
                        </el-menu-item>
                        <el-menu-item index="3">

                            <span slot="title">记住历史</span>
                        </el-menu-item>
                        <el-menu-item index="4">
                            <span slot="title">环保论坛</span>
                        </el-menu-item>
                        <el-menu-item index="5">
                            <span slot="title">周边商品</span>
                        </el-menu-item>
                    </el-menu>
                </el-col>
            </el-row>
        </div>
    </div>
</div>
</body>
<script>
    new Vue({
        el:"#video-app",
        data(){
            return {
                activeIndex: '1',
                activeIndex2: '1'
            }
        },
        methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            },
            handleOpen(key, keyPath) {
                console.log(key, keyPath);
            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            }
        },

    })
</script>
</html>